﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL
{
    public class DonHopTachThuaBLL
    {
        LandEntities data = new LandEntities();
        public void LuuDonXinHopTachThua(string maDon, DateTime ngayTao, string tachHop, string maCSD, string lyDo)
        {
            DONXT_HT donHT = new DONXT_HT();
            donHT.MADONXT_HT = maDon;
            donHT.NGAYTAODONXT_HT = ngayTao;
            donHT.TACH_HOP = tachHop;
            donHT.MACSD = maCSD;
            donHT.LYDO = lyDo;
            data.DONXT_HT.AddObject(donHT);
            data.SaveChanges();

        }
    }
}
